//
//  UILabel+Pyw.m
//  pyw_Demo
//
//  Created by smallwave on 16/4/5.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "UILabel+Pyw.h"
#import "PywCommonManager.h"

@implementation UILabel (Pyw)

+ (instancetype)labelWithText:(id)text
                textAlignment:(NSTextAlignment)textAlignment
                     fontSize:(CGFloat)fontSize
                    textColor:(UIColor *)textColor{
    CGFloat size = [[PywCommonManager manager] changeDeviceTextFontSize:fontSize];
    
    UILabel *label = [[UILabel alloc] init];
    label.backgroundColor = [UIColor clearColor];
    label.textAlignment = textAlignment;
    label.numberOfLines = 0;
    label.textColor = textColor;
    label.font = [UIFont systemFontOfSize:size];
    label.text = text;
    return label;
}

@end
